let state = {
  activeMovie: JSON.parse(window.sessionStorage.getItem('activeMovie')) || {}
}

let mutations = {
  getActiveMovie (state, data) {
    window.sessionStorage.setItem('activeMovie', JSON.stringify(data))
    state.activeMovie = data
    console.log(data)
  }
}

export default {
  state,
  mutations
}
